// source --> https://fbinstitute.com.au/wp-content/plugins/layouts/resources/js/ddl-layouts-frontend.js?ver=2.5.2
var DDLayout = DDLayout || {};
jQuery(document).ready( function () {
var video_embed = new DDLayout.EmbeddedManager(),
menu_fix = new DDLayout.DropDownMenuFix();
});
DDLayout.EmbeddedManager = function()
{
var self = this;
self.framework = DDLayout_fe_settings.DDL_JS.css_framework;
self.init = function()
{
if( self.hasOwnProperty( self.framework ) ) self[self.framework]();
};
self['bootstrap-2'] = function()
{
jQuery("[class*='span'] video,iframe,.wp-video").each( function () {
var span = jQuery(this).closest("[class*='span']");
if( span.length > 0 )
{
self.ddl_fit_videos_to_cell_size(jQuery(this), span);
}
});
};
self['bootstrap-3'] = function()
{
jQuery("[class*='col-sm-'] video,iframe,.wp-video").each( function () {
var span = jQuery(this).closest("[class*='col-sm-']");
if( span.length > 0 )
{
self.ddl_fit_videos_to_cell_size(jQuery(this), span);
}
});
};
self.ddl_fit_videos_to_cell_size = function(element, span) {
var iframe_right = jQuery(element).offset().left + jQuery(element).width(),
span_right = span.offset().left + span.width();
if ( iframe_right !== span_right ) {
var diff = iframe_right - span_right,
new_iframe_width = jQuery(element).width() - diff,
scale = new_iframe_width / jQuery(element).width();
if ( jQuery(element).attr('width') ) {
jQuery(element).attr('width', '100%');
} else {
jQuery(element).width('100%');
}
jQuery(element).attr('height', jQuery(element).height() * scale);
}
};
self.init();
};
DDLayout.DropDownMenuFix = function()
{
var self = this;
self.css_framework = DDLayout_fe_settings.DDL_JS.css_framework;
self.init = function()
{
if( self.css_framework == 'bootstrap-3' )
{
self.fixClickOnSubmenu();
}
};
self.fixClickOnSubmenu = function()
{
jQuery('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
// Avoid following the href location when clicking
event.preventDefault();
// Avoid having the menu to close when clicking
event.stopPropagation();
// If a menu is already open we close it
jQuery('ul.dropdown-menu [data-toggle=dropdown]').parent().removeClass('open');
// opening the one you clicked on
jQuery(this).parent().addClass('open');
var menu = jQuery(this).parent().find("ul");
var menupos = jQuery(menu).offset();
if (menupos.left + menu.width() > jQuery(window).width()) {
var newpos = -jQuery(menu).width();
menu.css({ left: newpos });
} else {
var newpos = jQuery(this).parent().width();
menu.css({ left: newpos });
}
});
};
self.init();
};
// source --> https://fbinstitute.com.au/wp-content/plugins/event-tickets-plus/vendor/jquery.deparam/jquery.deparam.js?ver=4.5.7
/**
* jquery-deparam: https://github.com/AceMetrix/jquery-deparam
* License: MIT
*/
(function(deparam){
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
try {
var jquery = require('jquery');
} catch (e) {
}
module.exports = deparam(jquery);
} else if (typeof define === 'function' && define.amd){
define(['jquery'], function(jquery){
return deparam(jquery);
});
} else {
var global;
try {
global = (false || eval)('this'); // best cross-browser way to determine global for < ES5
} catch (e) {
global = window; // fails only if browser (https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives)
}
global.deparam = deparam(global.jQuery); // assume jQuery is in global namespace
}
})(function ($) {
var deparam = function( params, coerce ) {
var obj = {},
coerce_types = { 'true': !0, 'false': !1, 'null': null };
// Iterate over all name=value pairs.
params.replace(/\+/g, ' ').split('&').forEach(function(v){
var param = v.split( '=' ),
key = decodeURIComponent( param[0] ),
val,
cur = obj,
i = 0,
// If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it
// into its component parts.
keys = key.split( '][' ),
keys_last = keys.length - 1;
// If the first keys part contains [ and the last ends with ], then []
// are correctly balanced.
if ( /\[/.test( keys[0] ) && /\]$/.test( keys[ keys_last ] ) ) {
// Remove the trailing ] from the last keys part.
keys[ keys_last ] = keys[ keys_last ].replace( /\]$/, '' );
// Split first keys part into two parts on the [ and add them back onto
// the beginning of the keys array.
keys = keys.shift().split('[').concat( keys );
keys_last = keys.length - 1;
} else {
// Basic 'foo' style key.
keys_last = 0;
}
// Are we dealing with a name=value pair, or just a name?
if ( param.length === 2 ) {
val = decodeURIComponent( param[1] );
// Coerce values.
if ( coerce ) {
val = val && !isNaN(val) && ((+val + '') === val) ? +val // number
: val === 'undefined' ? undefined // undefined
: coerce_types[val] !== undefined ? coerce_types[val] // true, false, null
: val; // string
}
if ( keys_last ) {
// Complex key, build deep object structure based on a few rules:
// * The 'cur' pointer starts at the object top-level.
// * [] = array push (n is set to array length), [n] = array if n is
// numeric, otherwise object.
// * If at the last keys part, set the value.
// * For each keys part, if the current level is undefined create an
// object or array based on the type of the next keys part.
// * Move the 'cur' pointer to the next level.
// * Rinse & repeat.
for ( ; i <= keys_last; i++ ) {
key = keys[i] === '' ? cur.length : keys[i];
cur = cur[key] = i < keys_last
? cur[key] || ( keys[i+1] && isNaN( keys[i+1] ) ? {} : [] )
: val;
}
} else {
// Simple key, even simpler rules, since only scalars and shallow
// arrays are allowed.
if ( Object.prototype.toString.call( obj[key] ) === '[object Array]' ) {
// val is already an array, so push on the next value.
obj[key].push( val );
} else if ( {}.hasOwnProperty.call(obj, key) ) {
// val isn't an array, but since a second value has been specified,
// convert val into an array.
obj[key] = [ obj[key], val ];
} else {
// val is a scalar.
obj[key] = val;
}
}
} else if ( key ) {
// No value was defined, so set something meaningful.
obj[key] = coerce
? undefined
: '';
}
});
return obj;
};
if ($) {
$.prototype.deparam = $.deparam = deparam;
}
return deparam;
});
// source --> https://fbinstitute.com.au/wp-content/themes/Family-Business-Institute/fancybox/jquery.mousewheel-3.0.6.pack.js
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
*
* Requires: 1.2.2+
*/
(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=
d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
// source --> https://fbinstitute.com.au/wp-content/themes/Family-Business-Institute/fancybox/jquery.fancybox.pack.js
/*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */
(function (C, z, f, r) {
var q = f(C),
n = f(z),
b = f.fancybox = function () {
b.open.apply(this, arguments)
}, H = navigator.userAgent.match(/msie/),
w = null,
s = z.createTouch !== r,
t = function (a) {
return a && a.hasOwnProperty && a instanceof f
}, p = function (a) {
return a && "string" === f.type(a)
}, F = function (a) {
return p(a) && 0 < a.indexOf("%")
}, l = function (a, d) {
var e = parseInt(a, 10) || 0;
d && F(a) && (e *= b.getViewport()[d] / 100);
return Math.ceil(e)
}, x = function (a, b) {
return l(a, b) + "px"
};
f.extend(b, {
version: "2.1.4",
defaults: {
padding: 15,
margin: 20,
width: 800,
height: 600,
minWidth: 100,
minHeight: 100,
maxWidth: 9999,
maxHeight: 9999,
autoSize: !0,
autoHeight: !1,
autoWidth: !1,
autoResize: !0,
autoCenter: !s,
fitToView: !0,
aspectRatio: !1,
topRatio: 0.5,
leftRatio: 0.5,
scrolling: "auto",
wrapCSS: "",
arrows: !0,
closeBtn: !0,
closeClick: !1,
nextClick: !1,
mouseWheel: !0,
autoPlay: !1,
playSpeed: 3E3,
preload: 3,
modal: !1,
loop: !0,
ajax: {
dataType: "html",
headers: {
"X-fancyBox": !0
}
},
iframe: {
scrolling: "auto",
preload: !0,
width: 400,
height: 300
},
swf: {
wmode: "transparent",
allowfullscreen: "true",
allowscriptaccess: "always",
width: 400,
height: 300
},
keys: {
next: {
13: "left",
34: "up",
39: "left",
40: "up"
},
prev: {
8: "right",
33: "down",
37: "right",
38: "down"
},
close: [27],
play: [32],
toggle: [70]
},
direction: {
next: "left",
prev: "right"
},
scrollOutside: !0,
index: 0,
type: null,
href: null,
content: null,
title: null,
description: null,
tpl: {
wrap: '
The requested content cannot be loaded.
Please try again later.
',
closeBtn: '").html(e).find(a.selector) : t(e) && (e.data("fancybox-placeholder") || e.data("fancybox-placeholder", f('
').insertAfter(e).hide()), e = e.show().detach(), a.wrap.bind("onReset", function () {
f(this).find(e).length && e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder", !1)
}));
break;
case "image":
e = a.tpl.image.replace("{href}", g);
break;
case "swf":
e = '
"
}(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e);
b.trigger("beforeShow");
a.inner.css("overflow", "yes" === k ? "scroll" : "no" === k ? "hidden" : k);
b._setDimension();
b.reposition();
b.isOpen = !1;
b.coming = null;
b.bindEvents();
if (b.isOpened) {
if (d.prevMethod) b.transitions[d.prevMethod]()
} else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();
b.transitions[b.isOpened ? a.nextMethod : a.openMethod]();
b._preloadImages()
}
},
_setDimension: function () {
var a = b.getViewport(),
d = 0,
e = !1,
c = !1,
e = b.wrap,
k = b.skin,
g = b.inner,
h = b.current,
c = h.width,
j = h.height,
m = h.minWidth,
u = h.minHeight,
n = h.maxWidth,
v = h.maxHeight,
s = h.scrolling,
q = h.scrollOutside ? h.scrollbarWidth : 0,
y = h.margin,
p = l(y[1] + y[3]),
r = l(y[0] + y[2]),
z, A, t, D, B, G, C, E, w;
e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");
y = l(k.outerWidth(!0) - k.width());
z = l(k.outerHeight(!0) - k.height());
A = p + y;
t = r + z;
D = F(c) ? (a.w - A) * l(c) / 100 : c;
B = F(j) ? (a.h - t) * l(j) / 100 : j;
if ("iframe" === h.type) {
if (w = h.content, h.autoHeight && 1 === w.data("ready")) try {
w[0].contentWindow.document.location && (g.width(D).height(9999), G = w.contents().find("body"), q && G.css("overflow-x",
"hidden"), B = G.height())
} catch (H) {}
} else if (h.autoWidth || h.autoHeight) g.addClass("fancybox-tmp"), h.autoWidth || g.width(D), h.autoHeight || g.height(B), h.autoWidth && (D = g.width()), h.autoHeight && (B = g.height()), g.removeClass("fancybox-tmp");
c = l(D);
j = l(B);
E = D / B;
m = l(F(m) ? l(m, "w") - A : m);
n = l(F(n) ? l(n, "w") - A : n);
u = l(F(u) ? l(u, "h") - t : u);
v = l(F(v) ? l(v, "h") - t : v);
G = n;
C = v;
h.fitToView && (n = Math.min(a.w - A, n), v = Math.min(a.h - t, v));
A = a.w - p;
r = a.h - r;
h.aspectRatio ? (c > n && (c = n, j = l(c / E)), j > v && (j = v, c = l(j * E)), c < m && (c = m, j = l(c / E)), j < u &&
(j = u, c = l(j * E))) : (c = Math.max(m, Math.min(c, n)), h.autoHeight && "iframe" !== h.type && (g.width(c), j = g.height()), j = Math.max(u, Math.min(j, v)));
if (h.fitToView) if (g.width(c).height(j), e.width(c + y), a = e.width(), p = e.height(), h.aspectRatio) for (;
(a > A || p > r) && (c > m && j > u) && !(19 < d++);) j = Math.max(u, Math.min(v, j - 10)), c = l(j * E), c < m && (c = m, j = l(c / E)), c > n && (c = n, j = l(c / E)), g.width(c).height(j), e.width(c + y), a = e.width(), p = e.height();
else c = Math.max(m, Math.min(c, c - (a - A))), j = Math.max(u, Math.min(j, j - (p - r)));
q && ("auto" === s && j < B && c + y +
q < A) && (c += q);
g.width(c).height(j);
e.width(c + y);
a = e.width();
p = e.height();
e = (a > A || p > r) && c > m && j > u;
c = h.aspectRatio ? c < G && j < C && c < D && j < B : (c < G || j < C) && (c < D || j < B);
f.extend(h, {
dim: {
width: x(a),
height: x(p)
},
origWidth: D,
origHeight: B,
canShrink: e,
canExpand: c,
wPadding: y,
hPadding: z,
wrapSpace: p - k.outerHeight(!0),
skinSpace: k.height() - j
});
!w && (h.autoHeight && j > u && j < v && !c) && g.height("auto")
},
_getPosition: function (a) {
var d = b.current,
e = b.getViewport(),
c = d.margin,
f = b.wrap.width() + c[1] + c[3],
g = b.wrap.height() + c[0] + c[2],
c = {
position: "absolute",
top: c[0],
left: c[3]
};
d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w ? c.position = "fixed" : d.locked || (c.top += e.y, c.left += e.x);
c.top = x(Math.max(c.top, c.top + (e.h - g) * d.topRatio));
c.left = x(Math.max(c.left, c.left + (e.w - f) * d.leftRatio));
return c
},
_afterZoomIn: function () {
var a = b.current;
a && (b.isOpen = b.isOpened = !0, b.wrap.css("overflow", "visible").addClass("fancybox-opened"), b.update(), (a.closeClick || a.nextClick && 1 < b.group.length) && b.inner.css("cursor", "pointer").bind("click.fb", function (d) {
!f(d.target).is("a") && !f(d.target).parent().is("a") &&
(d.preventDefault(), b[a.closeClick ? "close" : "next"]())
}), a.closeBtn && f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb", function (a) {
a.preventDefault();
b.close()
}), a.arrows && 1 < b.group.length && ((a.loop || 0 < a.index) && f(a.tpl.prev).appendTo(b.outer).bind("click.fb", b.prev), (a.loop || a.index < b.group.length - 1) && f(a.tpl.next).appendTo(b.outer).bind("click.fb", b.next)), b.trigger("afterShow"), !a.loop && a.index === a.group.length - 1 ? b.play(!1) : b.opts.autoPlay && !b.player.isActive && (b.opts.autoPlay = !1, b.play()))
},
_afterZoomOut: function (a) {
a =
a || b.current;
f(".fancybox-wrap").trigger("onReset").remove();
f.extend(b, {
group: {},
opts: {},
router: !1,
current: null,
isActive: !1,
isOpened: !1,
isOpen: !1,
isClosing: !1,
wrap: null,
skin: null,
outer: null,
inner: null
});
b.trigger("afterClose", a)
}
});
b.transitions = {
getOrigPosition: function () {
var a = b.current,
d = a.element,
e = a.orig,
c = {}, f = 50,
g = 50,
h = a.hPadding,
j = a.wPadding,
m = b.getViewport();
!e && (a.isDom && d.is(":visible")) && (e = d.find("img:first"), e.length || (e = d));
t(e) ? (c = e.offset(), e.is("img") && (f = e.outerWidth(), g = e.outerHeight())) :
(c.top = m.y + (m.h - g) * a.topRatio, c.left = m.x + (m.w - f) * a.leftRatio);
if ("fixed" === b.wrap.css("position") || a.locked) c.top -= m.y, c.left -= m.x;
return c = {
top: x(c.top - h * a.topRatio),
left: x(c.left - j * a.leftRatio),
width: x(f + j),
height: x(g + h)
}
},
step: function (a, d) {
var e, c, f = d.prop;
c = b.current;
var g = c.wrapSpace,
h = c.skinSpace;
if ("width" === f || "height" === f) e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start), b.isClosing && (e = 1 - e), c = "width" === f ? c.wPadding : c.hPadding, c = a - c, b.skin[f](l("width" === f ? c : c - g * e)), b.inner[f](l("width" ===
f ? c : c - g * e - h * e))
},
zoomIn: function () {
var a = b.current,
d = a.pos,
e = a.openEffect,
c = "elastic" === e,
k = f.extend({
opacity: 1
}, d);
delete k.position;
c ? (d = this.getOrigPosition(), a.openOpacity && (d.opacity = 0.1)) : "fade" === e && (d.opacity = 0.1);
b.wrap.css(d).animate(k, {
duration: "none" === e ? 0 : a.openSpeed,
easing: a.openEasing,
step: c ? this.step : null,
complete: b._afterZoomIn
})
},
zoomOut: function () {
var a = b.current,
d = a.closeEffect,
e = "elastic" === d,
c = {
opacity: 0.1
};
e && (c = this.getOrigPosition(), a.closeOpacity && (c.opacity = 0.1));
b.wrap.animate(c, {
duration: "none" === d ? 0 : a.closeSpeed,
easing: a.closeEasing,
step: e ? this.step : null,
complete: b._afterZoomOut
})
},
changeIn: function () {
var a = b.current,
d = a.nextEffect,
e = a.pos,
c = {
opacity: 1
}, f = b.direction,
g;
e.opacity = 0.1;
"elastic" === d && (g = "down" === f || "up" === f ? "top" : "left", "down" === f || "right" === f ? (e[g] = x(l(e[g]) - 200), c[g] = "+=200px") : (e[g] = x(l(e[g]) + 200), c[g] = "-=200px"));
"none" === d ? b._afterZoomIn() : b.wrap.css(e).animate(c, {
duration: a.nextSpeed,
easing: a.nextEasing,
complete: b._afterZoomIn
})
},
changeOut: function () {
var a =
b.previous,
d = a.prevEffect,
e = {
opacity: 0.1
}, c = b.direction;
"elastic" === d && (e["down" === c || "up" === c ? "top" : "left"] = ("up" === c || "left" === c ? "-" : "+") + "=200px");
a.wrap.animate(e, {
duration: "none" === d ? 0 : a.prevSpeed,
easing: a.prevEasing,
complete: function () {
f(this).trigger("onReset").remove()
}
})
}
};
b.helpers.overlay = {
defaults: {
closeClick: !0,
speedOut: 200,
showEarly: !0,
css: {},
locked: !s,
fixed: !0
},
overlay: null,
fixed: !1,
create: function (a) {
a = f.extend({}, this.defaults, a);
this.overlay && this.close();
this.overlay = f('
').appendTo("body");
this.fixed = !1;
a.fixed && b.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"), this.fixed = !0)
},
open: function (a) {
var d = this;
a = f.extend({}, this.defaults, a);
this.overlay ? this.overlay.unbind(".overlay").width("auto").height("auto") : this.create(a);
this.fixed || (q.bind("resize.overlay", f.proxy(this.update, this)), this.update());
a.closeClick && this.overlay.bind("click.overlay", function (a) {
f(a.target).hasClass("fancybox-overlay") && (b.isActive ? b.close() : d.close())
});
this.overlay.css(a.css).show()
},
close: function () {
f(".fancybox-overlay").remove();
q.unbind("resize.overlay");
this.overlay = null;
!1 !== this.margin && (f("body").css("margin-right", this.margin), this.margin = !1);
this.el && this.el.removeClass("fancybox-lock")
},
update: function () {
var a = "100%",
b;
this.overlay.width(a).height("100%");
H ? (b = Math.max(z.documentElement.offsetWidth, z.body.offsetWidth), n.width() > b && (a = n.width())) : n.width() > q.width() && (a = n.width());
this.overlay.width(a).height(n.height())
},
onReady: function (a, b) {
f(".fancybox-overlay").stop(!0, !0);
this.overlay || (this.margin = n.height() > q.height() || "scroll" === f("body").css("overflow-y") ? f("body").css("margin-right") : !1, this.el = z.all && !z.querySelector ? f("html") : f("body"), this.create(a));
a.locked && this.fixed && (b.locked = this.overlay.append(b.wrap), b.fixed = !1);
!0 === a.showEarly && this.beforeShow.apply(this, arguments)
},
beforeShow: function (a, b) {
b.locked && (this.el.addClass("fancybox-lock"), !1 !== this.margin && f("body").css("margin-right", l(this.margin) + b.scrollbarWidth));
this.open(a)
},
onUpdate: function () {
this.fixed ||
this.update()
},
afterClose: function (a) {
this.overlay && !b.isActive && this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this))
}
};
b.helpers.title = {
defaults: {
type: "float",
position: "bottom"
},
beforeShow: function (a) {
var d = b.current,
e = d.title,
c = a.type;
f.isFunction(e) && (e = e.call(d.element, d));
if (p(e) && "" !== f.trim(e)) {
d = f('
' + e + "
");
switch (c) {
case "inside":
c = b.skin;
break;
case "outside":
c = b.wrap;
break;
case "over":
c = b.inner;
break;
default:
c = b.skin, d.appendTo("body"),
H && d.width(d.width()), d.wrapInner('
'), b.current.margin[2] += Math.abs(l(d.css("margin-bottom")))
}
d["top" === a.position ? "prependTo" : "appendTo"](c)
}
}
};
b.helpers.description = {
defaults: {
type: "float",
position: "bottom"
},
beforeShow: function (a) {
var d = b.current,
e = document.getElementById("desc" + d.description) != undefined ? document.getElementById("desc" + d.description).innerHTML : "",
c = a.type;
if(e != ""){
f.isFunction(e) && (e = e.call(d.element, d));
if (p(e) && "" !== f.trim(e)) {
d = f('
' + e + "
");
switch (c) {
case "inside":
c = b.skin;
break;
case "outside":
c = b.wrap;
break;
case "over":
c = b.inner;
break;
default:
c = b.skin, d.appendTo("body"),
H && d.width(d.width()), d.wrapInner('
'), b.current.margin[2] += Math.abs(l(d.css("margin-bottom")))
}
d["top" === a.position ? "prependTo" : "appendTo"](c)
}
}
}
};
f.fn.fancybox = function (a) {
var d, e = f(this),
c = this.selector || "",
k = function (g) {
var h = f(this).blur(),
j = d,
k, l;
!g.ctrlKey && (!g.altKey && !g.shiftKey && !g.metaKey) && !h.is(".fancybox-wrap") && (k = a.groupAttr || "data-fancybox-group", l = h.attr(k), l || (k = "rel", l = h.get(0)[k]), l && ("" !== l && "nofollow" !== l) && (h = c.length ? f(c) : e, h = h.filter("[" + k + '="' + l +
'"]'), j = h.index(this)), a.index = j, !1 !== b.open(h, a) && g.preventDefault())
};
a = a || {};
d = a.index || 0;
!c || !1 === a.live ? e.unbind("click.fb-start").bind("click.fb-start", k) : n.undelegate(c, "click.fb-start").delegate(c + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", k);
this.filter("[data-fancybox-start=1]").trigger("click");
return this
};
n.ready(function () {
f.scrollbarWidth === r && (f.scrollbarWidth = function () {
var a = f('
').appendTo("body"),
b = a.children(),
b = b.innerWidth() - b.height(99).innerWidth();
a.remove();
return b
});
if (f.support.fixedPosition === r) {
var a = f.support,
d = f('
').appendTo("body"),
e = 20 === d[0].offsetTop || 15 === d[0].offsetTop;
d.remove();
a.fixedPosition = e
}
f.extend(b.defaults, {
scrollbarWidth: f.scrollbarWidth(),
fixed: f.support.fixedPosition,
parent: f("body")
})
})
})(window, document, jQuery);